--- /dev/null
+<interface>
+ <template class="MyDialog" parent="GtkDialog">
+ <child type="action">
+ <object class="GtkButton" id="cancel_button">
+ <property name="visible">True</property>
+ <property name="label">_Abort</property>
+ <property name="use_underline">True</property>
+ </object>
+ </child>
+ <child type="action">
+ <object class="GtkButton" id="go_button">
+ <property name="visible">True</property>
+ <property name="label">_Go</property>
+ <property name="use_underline">True</property>
+ <property name="can_default">True</property>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="cancel">cancel_button</action-widget>
+ <action-widget response="apply" default="True">go_button</action-widget>
+ </action-widgets>
+ </template>
+</interface>
--- /dev/null
+<interface>
+ <template class="MyDialog2" parent="GtkDialog">
+ <child internal-child="vbox">
+ <object class="GtkBox">
+ <child>
+ <object class="GtkLabel" id="content">
+ <property name="visible">True</property>
+ <property name="label">template content</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </template>
+</interface>
"transient-for", parent,
NULL);
- add_buttons (dialog);
add_content (dialog);
gtk_dialog_run (GTK_DIALOG (dialog));
"use-header-bar", use_header,
NULL);
- add_buttons (dialog);
add_content (dialog);
gtk_dialog_run (GTK_DIALOG (dialog));